<template>
  <div>
  
  </div>
</template>

<script>
import axios from "axios";
import { getApi } from "@/utils/utils.js";
export default {
  data() {
    return {
      apiUrl: "http://231.123.123:3444", //接口地址
    }
  },
  created() {
    //本地调试可先注释掉getApi()方法，写死apiUrl测试接口地址，再调试
    getApi(this).then((res) => {
      this.apiUrl = res.ApiUrl;
      this.getList();
    });
  },
  methods: {
    getList(){
       let _that = this;
      axios({
        method: "get",
        url: `${this.apiUrl}/XXX/XXXX`,
      }).then((res) => {
        console.log(res);
      });
    },
  }
}
</script>
<style scoped>

</style>
